<?php

use Illuminate\Http\Request;

/*
|--------------------------------------------------------------------------
| API Routes
|--------------------------------------------------------------------------
|
| Here is where you can register API routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| is assigned the "api" middleware group. Enjoy building your API!
|
*/

//Route::middleware('auth:api')->get('/user', function (Request $request) {
//    dd($request);
//    return $request->user();
//});
//Route::get('/user', function (Request $request) {
//    dd($request);
//    return $request->user();
//});
////路由模型绑定
//Route::middleware('throttle:60,1')->get('user/{user_model}', function (\App\Model\User $user) {
//
//    return $user;
//});
